<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>MCUXpresso SDK API Reference Manual: ECSPI SDMA Driver</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="fs_logo.gif"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">MCUXpresso SDK API Reference Manual
   &#160;<span id="projectnumber">Rev. 0</span>
   </div>
   <div id="projectbrief">NXP Semiconductors</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>API&#160;Reference</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__ecspi__sdma__driver.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a>  </div>
  <div class="headertitle">
<div class="title">ECSPI SDMA Driver<div class="ingroups"><a class="el" href="group__ecspi.html">ECSPI: Serial Peripheral Interface Driver</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:struct__ecspi__sdma__handle"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#struct__ecspi__sdma__handle">ecspi_sdma_handle_t</a></td></tr>
<tr class="memdesc:struct__ecspi__sdma__handle"><td class="mdescLeft">&#160;</td><td class="mdescRight">ECSPI SDMA transfer handle, users should not touch the content of the handle.  <a href="group__ecspi__sdma__driver.html#struct__ecspi__sdma__handle">More...</a><br/></td></tr>
<tr class="separator:struct__ecspi__sdma__handle"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gac78ed0c6c51de2548cc04a581c7557cd"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#gac78ed0c6c51de2548cc04a581c7557cd">ecspi_sdma_callback_t</a> )(ECSPI_Type *base, ecspi_sdma_handle_t *handle, status_t status, void *userData)</td></tr>
<tr class="memdesc:gac78ed0c6c51de2548cc04a581c7557cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">ECSPI SDMA callback called at the end of transfer.  <a href="#gac78ed0c6c51de2548cc04a581c7557cd">More...</a><br/></td></tr>
<tr class="separator:gac78ed0c6c51de2548cc04a581c7557cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
DMA Transactional</h2></td></tr>
<tr class="memitem:ga8a16bd7cef1e9b4a2d56363201f7771d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#ga8a16bd7cef1e9b4a2d56363201f7771d">ECSPI_MasterTransferCreateHandleSDMA</a> (ECSPI_Type *base, ecspi_sdma_handle_t *handle, <a class="el" href="group__ecspi__sdma__driver.html#gac78ed0c6c51de2548cc04a581c7557cd">ecspi_sdma_callback_t</a> callback, void *userData, <a class="el" href="group__sdma.html#structsdma__handle__t">sdma_handle_t</a> *txHandle, <a class="el" href="group__sdma.html#structsdma__handle__t">sdma_handle_t</a> *rxHandle, uint32_t eventSourceTx, uint32_t eventSourceRx, uint32_t TxChannel, uint32_t RxChannel)</td></tr>
<tr class="memdesc:ga8a16bd7cef1e9b4a2d56363201f7771d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the ECSPI master SDMA handle.  <a href="#ga8a16bd7cef1e9b4a2d56363201f7771d">More...</a><br/></td></tr>
<tr class="separator:ga8a16bd7cef1e9b4a2d56363201f7771d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa19b1a31d8bbbde080f6bdda3b1ebc08"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#gaa19b1a31d8bbbde080f6bdda3b1ebc08">ECSPI_SlaveTransferCreateHandleSDMA</a> (ECSPI_Type *base, ecspi_sdma_handle_t *handle, <a class="el" href="group__ecspi__sdma__driver.html#gac78ed0c6c51de2548cc04a581c7557cd">ecspi_sdma_callback_t</a> callback, void *userData, <a class="el" href="group__sdma.html#structsdma__handle__t">sdma_handle_t</a> *txHandle, <a class="el" href="group__sdma.html#structsdma__handle__t">sdma_handle_t</a> *rxHandle, uint32_t eventSourceTx, uint32_t eventSourceRx, uint32_t TxChannel, uint32_t RxChannel)</td></tr>
<tr class="memdesc:gaa19b1a31d8bbbde080f6bdda3b1ebc08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the ECSPI Slave SDMA handle.  <a href="#gaa19b1a31d8bbbde080f6bdda3b1ebc08">More...</a><br/></td></tr>
<tr class="separator:gaa19b1a31d8bbbde080f6bdda3b1ebc08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga507a090a4a4d88216e7a4037324131b4"><td class="memItemLeft" align="right" valign="top">status_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#ga507a090a4a4d88216e7a4037324131b4">ECSPI_MasterTransferSDMA</a> (ECSPI_Type *base, ecspi_sdma_handle_t *handle, <a class="el" href="group__ecspi__driver.html#structecspi__transfer__t">ecspi_transfer_t</a> *xfer)</td></tr>
<tr class="memdesc:ga507a090a4a4d88216e7a4037324131b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Perform a non-blocking ECSPI master transfer using SDMA.  <a href="#ga507a090a4a4d88216e7a4037324131b4">More...</a><br/></td></tr>
<tr class="separator:ga507a090a4a4d88216e7a4037324131b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad1dc36bbee073e0b5cd206bc6302788f"><td class="memItemLeft" align="right" valign="top">status_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#gad1dc36bbee073e0b5cd206bc6302788f">ECSPI_SlaveTransferSDMA</a> (ECSPI_Type *base, ecspi_sdma_handle_t *handle, <a class="el" href="group__ecspi__driver.html#structecspi__transfer__t">ecspi_transfer_t</a> *xfer)</td></tr>
<tr class="memdesc:gad1dc36bbee073e0b5cd206bc6302788f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Perform a non-blocking ECSPI slave transfer using SDMA.  <a href="#gad1dc36bbee073e0b5cd206bc6302788f">More...</a><br/></td></tr>
<tr class="separator:gad1dc36bbee073e0b5cd206bc6302788f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5eb7cc3764650778f1b9a54914b631fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#ga5eb7cc3764650778f1b9a54914b631fe">ECSPI_MasterTransferAbortSDMA</a> (ECSPI_Type *base, ecspi_sdma_handle_t *handle)</td></tr>
<tr class="memdesc:ga5eb7cc3764650778f1b9a54914b631fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abort a ECSPI master transfer using SDMA.  <a href="#ga5eb7cc3764650778f1b9a54914b631fe">More...</a><br/></td></tr>
<tr class="separator:ga5eb7cc3764650778f1b9a54914b631fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf52477d64572396f5586611ed7cc15fa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#gaf52477d64572396f5586611ed7cc15fa">ECSPI_SlaveTransferAbortSDMA</a> (ECSPI_Type *base, ecspi_sdma_handle_t *handle)</td></tr>
<tr class="memdesc:gaf52477d64572396f5586611ed7cc15fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abort a ECSPI slave transfer using SDMA.  <a href="#gaf52477d64572396f5586611ed7cc15fa">More...</a><br/></td></tr>
<tr class="separator:gaf52477d64572396f5586611ed7cc15fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="struct__ecspi__sdma__handle" id="struct__ecspi__sdma__handle"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct _ecspi_sdma_handle</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"></div><table class="memberdecls">
<tr><td colspan="2"><h3>Data Fields</h3></td></tr>
<tr class="memitem:a7b3a0a7798aded04831738c113b58b48"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b3a0a7798aded04831738c113b58b48"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#a7b3a0a7798aded04831738c113b58b48">txInProgress</a></td></tr>
<tr class="memdesc:a7b3a0a7798aded04831738c113b58b48"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send transfer finished. <br/></td></tr>
<tr class="separator:a7b3a0a7798aded04831738c113b58b48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b67c5fb9f537d95051a35e419bc6c33"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5b67c5fb9f537d95051a35e419bc6c33"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#a5b67c5fb9f537d95051a35e419bc6c33">rxInProgress</a></td></tr>
<tr class="memdesc:a5b67c5fb9f537d95051a35e419bc6c33"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receive transfer finished. <br/></td></tr>
<tr class="separator:a5b67c5fb9f537d95051a35e419bc6c33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac3362fdc25ba2989c4bb41931c4be82"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aac3362fdc25ba2989c4bb41931c4be82"></a>
<a class="el" href="group__sdma.html#structsdma__handle__t">sdma_handle_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#aac3362fdc25ba2989c4bb41931c4be82">txSdmaHandle</a></td></tr>
<tr class="memdesc:aac3362fdc25ba2989c4bb41931c4be82"><td class="mdescLeft">&#160;</td><td class="mdescRight">DMA handler for ECSPI send. <br/></td></tr>
<tr class="separator:aac3362fdc25ba2989c4bb41931c4be82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11480ca53b85fd875e4baa46103463e8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11480ca53b85fd875e4baa46103463e8"></a>
<a class="el" href="group__sdma.html#structsdma__handle__t">sdma_handle_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#a11480ca53b85fd875e4baa46103463e8">rxSdmaHandle</a></td></tr>
<tr class="memdesc:a11480ca53b85fd875e4baa46103463e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">DMA handler for ECSPI receive. <br/></td></tr>
<tr class="separator:a11480ca53b85fd875e4baa46103463e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad031f81d842bd5f28cf56288e17e19d3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad031f81d842bd5f28cf56288e17e19d3"></a>
<a class="el" href="group__ecspi__sdma__driver.html#gac78ed0c6c51de2548cc04a581c7557cd">ecspi_sdma_callback_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#ad031f81d842bd5f28cf56288e17e19d3">callback</a></td></tr>
<tr class="memdesc:ad031f81d842bd5f28cf56288e17e19d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback for ECSPI SDMA transfer. <br/></td></tr>
<tr class="separator:ad031f81d842bd5f28cf56288e17e19d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06e3684aa102aac0b8669a12f25cb177"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a06e3684aa102aac0b8669a12f25cb177"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#a06e3684aa102aac0b8669a12f25cb177">userData</a></td></tr>
<tr class="memdesc:a06e3684aa102aac0b8669a12f25cb177"><td class="mdescLeft">&#160;</td><td class="mdescRight">User Data for ECSPI SDMA callback. <br/></td></tr>
<tr class="separator:a06e3684aa102aac0b8669a12f25cb177"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66035e705170244f70aee7e64f84f481"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a66035e705170244f70aee7e64f84f481"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#a66035e705170244f70aee7e64f84f481">state</a></td></tr>
<tr class="memdesc:a66035e705170244f70aee7e64f84f481"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal state of ECSPI SDMA transfer. <br/></td></tr>
<tr class="separator:a66035e705170244f70aee7e64f84f481"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a797050fdafcd3758131b55a0c9b308"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a797050fdafcd3758131b55a0c9b308"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#a4a797050fdafcd3758131b55a0c9b308">ChannelTx</a></td></tr>
<tr class="memdesc:a4a797050fdafcd3758131b55a0c9b308"><td class="mdescLeft">&#160;</td><td class="mdescRight">Channel for send handle. <br/></td></tr>
<tr class="separator:a4a797050fdafcd3758131b55a0c9b308"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e6435ea77bc93cb05c159da78cd1332"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e6435ea77bc93cb05c159da78cd1332"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ecspi__sdma__driver.html#a3e6435ea77bc93cb05c159da78cd1332">ChannelRx</a></td></tr>
<tr class="memdesc:a3e6435ea77bc93cb05c159da78cd1332"><td class="mdescLeft">&#160;</td><td class="mdescRight">Channel for receive handler. <br/></td></tr>
<tr class="separator:a3e6435ea77bc93cb05c159da78cd1332"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="gac78ed0c6c51de2548cc04a581c7557cd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(* ecspi_sdma_callback_t)(ECSPI_Type *base, ecspi_sdma_handle_t *handle, status_t status, void *userData)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga8a16bd7cef1e9b4a2d56363201f7771d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ECSPI_MasterTransferCreateHandleSDMA </td>
          <td>(</td>
          <td class="paramtype">ECSPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ecspi_sdma_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ecspi__sdma__driver.html#gac78ed0c6c51de2548cc04a581c7557cd">ecspi_sdma_callback_t</a>&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>userData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__sdma.html#structsdma__handle__t">sdma_handle_t</a> *&#160;</td>
          <td class="paramname"><em>txHandle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__sdma.html#structsdma__handle__t">sdma_handle_t</a> *&#160;</td>
          <td class="paramname"><em>rxHandle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>eventSourceTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>eventSourceRx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>TxChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>RxChannel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function initializes the ECSPI master SDMA handle which can be used for other SPI master transactional APIs. Usually, for a specified ECSPI instance, user need only call this API once to get the initialized handle.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>ECSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>ECSPI handle pointer. </td></tr>
    <tr><td class="paramname">callback</td><td>User callback function called at the end of a transfer. </td></tr>
    <tr><td class="paramname">userData</td><td>User data for callback. </td></tr>
    <tr><td class="paramname">txHandle</td><td>SDMA handle pointer for ECSPI Tx, the handle shall be static allocated by users. </td></tr>
    <tr><td class="paramname">rxHandle</td><td>SDMA handle pointer for ECSPI Rx, the handle shall be static allocated by users. </td></tr>
    <tr><td class="paramname">eventSourceTx</td><td>event source for ECSPI send, which can be found in SDMA mapping. </td></tr>
    <tr><td class="paramname">eventSourceRx</td><td>event source for ECSPI receive, which can be found in SDMA mapping. </td></tr>
    <tr><td class="paramname">TxChannel</td><td>SDMA channel for ECSPI send. </td></tr>
    <tr><td class="paramname">RxChannel</td><td>SDMA channel for ECSPI receive. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaa19b1a31d8bbbde080f6bdda3b1ebc08"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ECSPI_SlaveTransferCreateHandleSDMA </td>
          <td>(</td>
          <td class="paramtype">ECSPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ecspi_sdma_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ecspi__sdma__driver.html#gac78ed0c6c51de2548cc04a581c7557cd">ecspi_sdma_callback_t</a>&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>userData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__sdma.html#structsdma__handle__t">sdma_handle_t</a> *&#160;</td>
          <td class="paramname"><em>txHandle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__sdma.html#structsdma__handle__t">sdma_handle_t</a> *&#160;</td>
          <td class="paramname"><em>rxHandle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>eventSourceTx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>eventSourceRx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>TxChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>RxChannel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function initializes the ECSPI Slave SDMA handle which can be used for other SPI Slave transactional APIs. Usually, for a specified ECSPI instance, user need only call this API once to get the initialized handle.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>ECSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>ECSPI handle pointer. </td></tr>
    <tr><td class="paramname">callback</td><td>User callback function called at the end of a transfer. </td></tr>
    <tr><td class="paramname">userData</td><td>User data for callback. </td></tr>
    <tr><td class="paramname">txHandle</td><td>SDMA handle pointer for ECSPI Tx, the handle shall be static allocated by users. </td></tr>
    <tr><td class="paramname">rxHandle</td><td>SDMA handle pointer for ECSPI Rx, the handle shall be static allocated by users. </td></tr>
    <tr><td class="paramname">eventSourceTx</td><td>event source for ECSPI send, which can be found in SDMA mapping. </td></tr>
    <tr><td class="paramname">eventSourceRx</td><td>event source for ECSPI receive, which can be found in SDMA mapping. </td></tr>
    <tr><td class="paramname">TxChannel</td><td>SDMA channel for ECSPI send. </td></tr>
    <tr><td class="paramname">RxChannel</td><td>SDMA channel for ECSPI receive. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga507a090a4a4d88216e7a4037324131b4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">status_t ECSPI_MasterTransferSDMA </td>
          <td>(</td>
          <td class="paramtype">ECSPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ecspi_sdma_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ecspi__driver.html#structecspi__transfer__t">ecspi_transfer_t</a> *&#160;</td>
          <td class="paramname"><em>xfer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section note"><dt>Note</dt><dd>This interface returned immediately after transfer initiates.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>ECSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>ECSPI SDMA handle pointer. </td></tr>
    <tr><td class="paramname">xfer</td><td>Pointer to sdma transfer structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>Successfully start a transfer. </td></tr>
    <tr><td class="paramname">kStatus_InvalidArgument</td><td>Input argument is invalid. </td></tr>
    <tr><td class="paramname">kStatus_ECSPI_Busy</td><td>EECSPI is not idle, is running another transfer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad1dc36bbee073e0b5cd206bc6302788f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">status_t ECSPI_SlaveTransferSDMA </td>
          <td>(</td>
          <td class="paramtype">ECSPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ecspi_sdma_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ecspi__driver.html#structecspi__transfer__t">ecspi_transfer_t</a> *&#160;</td>
          <td class="paramname"><em>xfer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section note"><dt>Note</dt><dd>This interface returned immediately after transfer initiates.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>ECSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>ECSPI SDMA handle pointer. </td></tr>
    <tr><td class="paramname">xfer</td><td>Pointer to sdma transfer structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">kStatus_Success</td><td>Successfully start a transfer. </td></tr>
    <tr><td class="paramname">kStatus_InvalidArgument</td><td>Input argument is invalid. </td></tr>
    <tr><td class="paramname">kStatus_ECSPI_Busy</td><td>EECSPI is not idle, is running another transfer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga5eb7cc3764650778f1b9a54914b631fe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ECSPI_MasterTransferAbortSDMA </td>
          <td>(</td>
          <td class="paramtype">ECSPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ecspi_sdma_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>ECSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>ECSPI SDMA handle pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf52477d64572396f5586611ed7cc15fa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ECSPI_SlaveTransferAbortSDMA </td>
          <td>(</td>
          <td class="paramtype">ECSPI_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ecspi_sdma_handle_t *&#160;</td>
          <td class="paramname"><em>handle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>ECSPI peripheral base address. </td></tr>
    <tr><td class="paramname">handle</td><td>ECSPI SDMA handle pointer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.5-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul class="foot">
    <li class="footer">&copy; 2016 NXP Semiconductors. All rights reserved.
    </li>
  </ul>
</div>
</body>
</html>
